<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAdminWechatUserTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('admin_wechat_user', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('phone')->nullable()->comment('手机号');
            $table->string('nickname')->default('')->comment('昵称');
            $table->tinyInteger('status')->nullable()->default(0)->comment('1、已提交资料，待审核 2、初审通过/不通过 3、已缴费，待进行考试 4、已考试 5、考试合格 6、待出证 7、已出证');
            $table->string('open_id')->nullable();
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('admin_wechat_user');
    }
}
